﻿using FoodModel;
using J.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.FoodRepository.InterFace
{
    public interface ISpecificationRepository:IRepository<SpecificationModel>
    {
        /// <summary>
        /// 菜品规格添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<int> SpecificationAdd(SpecificationModel model);
        /// <summary>
        /// 菜品规格显示
        /// </summary>
        /// <returns></returns>
        Task<List<SpecificationModel>> SpecificationShow();
        /// <summary>
        /// 菜品规格分类显示
        /// </summary>
        /// <returns></returns>
        Task<List<SpecificationModel>> Specificationclassify();
        /// <summary>
        /// 菜品规格反填
        /// </summary>
        /// <returns></returns>
        Task<List<SpecificationModel>> SpecificationBack(int id);
        /// <summary>
        /// 菜品规格修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<int> SpecificationUpDate(SpecificationModel model);
        /// <summary>
        /// 菜品规格删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> SpecificationDelete(string id);

    }
}
